package com.talos.ums.controller.admin.usertenant.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.time.LocalDateTime;

@Schema(description = "管理后台 - 用户租户表新增/修改 Request VO")
@Data
public class UmsUserTenantSaveReqVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "29297")
    private Long id;

    @Schema(description = "用户主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "16062")
    @NotNull(message = "用户主键不能为空")
    private Long userId;

    @Schema(description = "租户编码")
    private String tenantCode;

    @Schema(description = "租户名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "赵六")
    @NotEmpty(message = "租户名称不能为空")
    private String tenantName;

    @Schema(description = "租赁开始时间")
    private LocalDateTime leaseBeginAt;

    @Schema(description = "租赁结束时间")
    private LocalDateTime leaseEndAt;

    @Schema(description = "禁用", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "禁用不能为空")
    private Integer disableFlag;

}
